﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BussinessObject;
using Class_Entity;

public partial class Category_Insert : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnInsert_Click(object sender, EventArgs e)
    {
        BO_TrainType bott = new BO_TrainType();
        CE_TrainType cett = new CE_TrainType();

        cett._Type = txtName.Text.Trim();
        bott.AddNew_TrainType(cett);
        HttpContext.Current.Response.Write("<script type='text/javascript'>alert('" + "Done" + "');window.location.href='TrainType Managerment.aspx';</script>");
    }
}